package com.dhcc.bpm.modules.bbs.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @ClassName TopicUser
 * @Description 论坛板块用户关联表实体类
 * @Author daina
 * @Date 2020/3/6 15:55
 * @Version V1.0
 * @Copyright: 2020 东华软件 . All rights reserved.
 **/
@Data
@TableName("bbs_topic_user")
@ApiModel(value = "TopicUser对象", description = "论坛板块用户关联表")
public class TopicUser implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 编号
	 */
	@ApiModelProperty(value = "编号")
	@JsonSerialize( using = ToStringSerializer.class, nullsUsing = NullSerializer.class)
	@TableId( value = "id", type = IdType.ASSIGN_ID )
	private Long id;
	/**
	* 用户ID
	*/
		@ApiModelProperty(value = "用户ID")
		@JsonSerialize( using = ToStringSerializer.class, nullsUsing = NullSerializer.class)
		private Long opcUserId;
	/**
	* 论坛板块ID
	*/
		@ApiModelProperty(value = "论坛板块ID")
		@JsonSerialize( using = ToStringSerializer.class, nullsUsing = NullSerializer.class)
		private Long bbsTopicId;

}
